/**
 * .
 *
 *
 *
 *
 */

package io.zpy;

import io.zpy.service.TrackTopicsService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("io.zpy.dao")
@EnableTransactionManagement
@EnableScheduling
public class DevisePartnersApplication implements CommandLineRunner {

	@Autowired
	private TrackTopicsService trackTopicsService;

	public static void main(String[] args) {
		SpringApplication.run(DevisePartnersApplication.class, args);
	}

	@Override
	public void run(String... args) throws Exception {
		trackTopicsService.runAllJobs();
	}
}
